<html>
<body>
Reports any <code>List.indexOf()</code>
expressions that can be replaced with the 
  <code>List.contains()</code> method.
<p>Example:</p>
<pre><code>
  boolean hasEmptyString(List&lt;String&gt; list) {
    // Warning: can be simplified
    return list.indexOf("") &gt;= 0;
  }
</code></pre>
<p>The provided quick-fix replaces the <code>indexOf</code> call with the <code>contains</code> call:</p>
<pre><code>
  boolean hasEmptyString(List&lt;String&gt; list) {
    // Quick-fix is applied
    return list.contains("");
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>